package listener;

import javax.servlet.ServletContextAttributeEvent;
import javax.servlet.ServletContextAttributeListener;

import po.Dish;

public class DishAttributeListener implements ServletContextAttributeListener {
	
	private Dish dish = null;
	
    public void attributeAdded(ServletContextAttributeEvent scae)  { 
    	System.out.println("Attribute " + scae.getName() + " add and value is " + scae.getValue());
    }

    public void attributeRemoved(ServletContextAttributeEvent scae)  { 
    	System.out.println("Attribute " + scae.getName() + " remove and value is " + scae.getValue());
    }

    public void attributeReplaced(ServletContextAttributeEvent scae)  { 
    	System.out.println("Attribute " + scae.getName() + " replace and value is " + scae.getValue());
    }
	
}
